<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class StoreBargainUserCount extends Model
{
    use HasFactory;
    protected $guarded = [];
    protected $table = 'store_bargain_user_count';

    /**
     * 查询
     * @param $uid
     * @return mixed
     */
    public static function storeBargainUserCountFind($uid){
        return self::where('uid',$uid)->first();
    }

    /**
     * 添加
     * @param $data
     * @return mixed
     */
    public static function storeBargainUserCountSave($data){
        return self::insert($data);
    }
}
